package com.ec.common.constant;

public class CacheConstants {
    // 空值缓存时间
    public static final long CACHE_NULL_TTL = 2L; // 分钟

    // 缓存键前缀
    public static final String CACHE_PREFIX = "cache:";
    public static final String CACHE_USER_ELDERLY_KEY = CACHE_PREFIX + "user:elderly:";
    public static final String CACHE_USER_FAMILY_KEY = CACHE_PREFIX + "user:family:";
    public static final String CACHE_HEALTH_RECORD_KEY = CACHE_PREFIX + "health:record:";
    public static final String CACHE_BED_KEY = CACHE_PREFIX + "bed:";
    public static final String CACHE_FEEDBACK_KEY = CACHE_PREFIX + "feedback:my:";
    public static final String CACHE_BILL_KEY = CACHE_PREFIX + "bill:";

    // 锁键前缀
    public static final String LOCK_PREFIX = "lock:";
    public static final String LOCK_USER_KEY = LOCK_PREFIX + "user:";
    public static final String LOCK_HEALTH_KEY = LOCK_PREFIX + "health:";
    public static final String LOCK_BILL_KEY = LOCK_PREFIX + "bill:";

    // 默认缓存时间
    public static final long DEFAULT_TTL = 30L; // 分钟
}